//
//  YXOrderTableViewCell.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-4.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXOrderTableViewCell.h"

@implementation YXOrderTableViewCell
@synthesize nameLab,moneyLab,salesreturnLab;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        float w = 320/3.0;
        nameLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, w, 40)];
        nameLab.numberOfLines = 0;
        nameLab.lineBreakMode = NSLineBreakByWordWrapping;
        nameLab.textAlignment = NSTextAlignmentCenter;
        nameLab.font = [UIFont systemFontOfSize:16];
        nameLab.layer.borderColor = [UIColor blackColor].CGColor;
        nameLab.layer.borderWidth = .25;
        [self addSubview:nameLab];
        
        moneyLab = [[UILabel alloc] initWithFrame:CGRectMake(w, 0, w, 40)];
        moneyLab.numberOfLines = 0;
        moneyLab.lineBreakMode = NSLineBreakByWordWrapping;
        moneyLab.textAlignment = NSTextAlignmentCenter;
        moneyLab.font = [UIFont systemFontOfSize:16];
        moneyLab.layer.borderColor = [UIColor blackColor].CGColor;
        moneyLab.layer.borderWidth = .25;
        [self addSubview:moneyLab];
        
        salesreturnLab = [[UILabel alloc] initWithFrame:CGRectMake(w*2, 0, w, 40)];
        salesreturnLab.numberOfLines = 0;
        salesreturnLab.lineBreakMode = NSLineBreakByWordWrapping;
        salesreturnLab.textAlignment = NSTextAlignmentCenter;
        salesreturnLab.font = [UIFont systemFontOfSize:16];
        salesreturnLab.layer.borderColor = [UIColor blackColor].CGColor;
        salesreturnLab.layer.borderWidth = .25;
        [self addSubview:salesreturnLab];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
